package simorg.actions;

import org.dom4j.Document;

import simorg.controller.AppController;
import simorg.view.ModelView;
import simorg.view.Page;
import simorg.view.WebSessionContext;

public class RunMain extends Action {

	public static final String actionName = "main";
	public RunMain() {
		super(actionName);
		this.controllerName = AppController.controllerName;
	}
	
	
	@Override
	public ModelView process(WebSessionContext wc) throws Exception {
		Document xmlDoc = this.getBaseXml(wc);
		
		return new ModelView(Page.Main, xmlDoc);
	}

}
